package com.fz.service;

import com.fz.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 商品分类 服务类
 * </p>
 *
 * @author fz
 * @since 2024-08-17
 */
public interface CategoryService extends IService<Category> {
    List<Category> getList();

    List<Category> getByParentId(Long parentId);

    List<Category> findAllLeafNodes(Long parentId);
}
